﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href='@Url.FrontUrl().FileUrl("favicon.ico")' />
    @Html.FrontHtml().HtmlTitle() @Html.FrontHtml().Meta() @Html.FrontHtml().RegisterStyles()
    @Html.FrontHtml().RegisterScripts(false)
    <script type="text/javascript" src="@Url.FrontUrl().FileUrl("js/fancybox/jquery.fancybox-1.3.4.pack.js")"></script>
    <link type="text/css" rel="stylesheet" href="@Url.FrontUrl().FileUrl("js/fancybox/jquery.fancybox-1.3.4.css")" />
</head>
<body>
    <div id="body-container">
        <div id="header">
            <div class="global-width">
                <h1 class="logo">
                    <a href='@Url.FrontUrl().PageUrl("Articles")'>@("Sample site".Label())</a></h1>
                <ul class="quicklink">
                    @if (User.Identity.IsAuthenticated)
                    {
                  	<li>[ <strong>@User.Identity.Name</strong> ]</li>
                        <li>[ <a href="@Url.Action("SignOut", "LogOn", new { area = "Account", returnUrl = Request.RawUrl })">@("Sign Out".Label())</a>]</li>
                    }
                    else
                    { 

                        <li>[ <a id="login-link" href="/admin">@("LogOn".Label())</a> ]</li>
                    }
                </ul>
                @Html.FrontHtml().RenderView("Menu", ViewData)
            </div>
        </div>
        <div id="headline">
            <div class="global-width clearfix">
                <h2>@MenuHelper.Current().LinkText.Label()</h2>
                <div class="search">
                    <form action="@Url.FrontUrl().PageUrl("search")" method="get">
                    <p class="watermark">
                        <label for="searchBox">
                            Keywords</label>
                        <input type="text" name="key" id="searchBox" value="@Page_Context.Current.PageRequestContext.AllQueryString["key"]"/>
                    </p>
                    <button type="submit">
                        Search</button>
                    </form>
                </div>
            </div>
        </div>
        <div id="main-container" class="global-width clearfix">
            <div id="main">
                @Html.FrontHtml().Position("main")
            </div>
            <div id="sidebar">
                @Html.FrontHtml().Position("sidebar")
            </div>
        </div>
        <div id="footer" class="global-width">
            <p class="copyright">@("Copyright &copy; 2011 Kooboo team".Label())</p>
        </div>
    </div>
    <div class="hide">
        @Html.FrontHtml().RenderView("LoginForm", ViewData)
    </div>
</body>
</html>
